package com.woniu.common.constant;

/**
 * RabbitMQ常量
 * @author Administrator
 */
public interface MqConstant {
    /**
     * 交换机常量
     */
    public interface Exchange{

        String ORDER_EXCHANGE = "order_exchange";

        String DLX_EXCHANGE = "dlx_exchange";

        String SKU_ORDER_EXCHANGE = "sku_order_exchange";

    }

    /**
     * 队列常量
     */
    public interface Queue{
        /**
         * 死信订单队列
         */
        String DLX_ORDER_QUEUE = "dlx_order_queue";

        /**
         * 订单队列
         */
        String ORDER_QUEUE = "order_queue";

        /**
         * 延时订单队列
         */
        String TTL_ORDER_QUEUE = "ttl_order_queue";

        /**
         * 死信延时队列
         */
        String DLX_TTL_ORDER_QUEUE = "dlx_ttl_order_queue";

        /**
         * 用户队列
         */
        String USER_QUEUE = "user_queue";

        /**
         * 回滚订单队列
         */
        String ROLLBACK_USER_QUEUE = "rollback_user_queue";

        /**
         * 商品死信队列
         */
        String DLX_SKU_QUEUE = "dlx_sku_queue";

        /**
         * 商品订单死信队列
         */
        String DLX_SKU_ORDER_QUEUE = "dlx_sku_order_queue";

        /**
         * 购物车死信队列
         */
        String DLX_SHOPPINGCART_QUEUE = "dlx_shoppingcart_queue";

        /**
         * 延迟商品订单死信队列
         */
        String DLX_TTL_SKU_ORDER_QUEUE = "dlx_ttl_sku_order_queue";

        /**
         * 延迟积分商品订单死信队列
         */
        String DLX_TTL_SKU_JIFEN_ORDER_QUEUE = "dlx_ttl_sku_jifen_order_queue";

        /**
         * 购物车回滚队列
         */
        String ROLLBACK_SHOPPINGCART_QUEUE = "rollback_shoppingcart_queue";

        /**
         * 商品回滚队列
         */
        String ROLLBACK_SKU_QUEUE = "rollback_sku_queue";

        /**
         * 延迟商品订单
         */
        String TTL_SKU_ORDER_QUEUE = "ttl_sku_order_queue";

        /**
         * 商品队列
         */
        String SKU_QUEUE = "sku_queue";

        /**
         * 购物车队列
         */
        String SHOPPINGCART_QUEUE = "shoppingcart_queue";

        /**
         * 商品订单队列
         */
        String SKU_ORDER_QUEUE = "sku_order_queue";

        /**
         * 积分商品订单队列
         */
        String SKU_JIFEN_ORDER_QUEUE = "sku_jifen_order_queue";

        /**
         * 积分订单队列
         */
        String JIFEN_QUEUE = "jifen_queue";


        /**
         * 延时积分订单队列
         */
        String DLX_TTL_JIFEN_QUEUE = "dlx_ttl_jifen_queue";

        /**
         * 延迟积分订单
         */
        String DLX_JIFEN_QUEUE = "dlx_jifen_queue";
    }

    /**
     * 路由键
     */
    interface RoutingKey{
        /**
         * 死信订单路由键
         */
        String DLX_ORDER_ROUTING_KEY = "dlx_order_routing_key";

        /**
         * 死信延时路由键
         */
        String DLX_TTL_ORDER_ROUTING_KEY = "dlx_ttl_order_routing_key";

        /**
         * 延时订单路由键
         */
        String TTL_ORDER_ROUTING_KEY = "ttl_order_routing_key";


        /**
         * 订单路由键
         */
        String ORDER_ROUTING_KEY = "order_routing_key";

        /**
         * 回滚用户路由键
         */
        String ROLLBACK_USER_ROUTING_KEY = "rollback_user_routing_key";

        /**
         * 用户路由键
         */
        String USER_ROUTING_KEY = "user_routing_key";

        /**
         * 商品死信队列
         */
        String DLX_SKU_ROUTING_KEY= "dlx_sku_routing_key";

        /**
         * 商品订单死信队列
         */
        String DLX_SKU_ORDER_ROUTING_KEY = "dlx_sku_order_routing_key";

        /**
         * 购物车死信队列
         */
        String DLX_SHOPPINGCART_ROUTING_KEY = "dlx_shoppingcart_routing_key";

        /**
         * 延迟商品订单死信队列
         */
        String DLX_TTL_SKU_ORDER_ROUTING_KEY = "dlx_ttl_sku_order_routing_key";

        /**
         * 购物车回滚队列
         */
        String ROLLBACK_SHOPPINGCART_ROUTING_KEY = "rollback_shoppingcart_routing_key";

        /**
         * 商品回滚队列
         */
        String ROLLBACK_SKU_ROUTING_KEY = "rollback_sku_routing_key";

        /**
         * 延迟商品订单
         */
        String TTL_SKU_ORDER_ROUTING_KEY = "ttl_sku_order_routing_key";

        /**
         * 延迟积分商品订单
         */
        String TTL_SKU_JIFEN_ORDER_ROUTING_KEY = "ttl_sku_jifen_order_routing_key";

        /**
         * 商品队列
         */
        String SKU_ROUTING_KEY  = "sku_routing_key";

        /**
         * 购物车队列
         */
        String SHOPPINGCART_ROUTING_KEY  = "shoppingcart_routing_key";

        /**
         * 商品订单队列
         */
        String SKU_ORDER_ROUTING_KEY  = "sku_order_routing_key";

        /**
         * 商品订单队列
         */
        String SKU_JIFEN_ORDER_ROUTING_KEY  = "sku_jifen_order_routing_key";

        /**
         * 积分话费订单队列
         */
        String JIFEN_ROUTING_KEY  = "jifen_routing_key";

        /**
         * 延时积分话费订单路由键
         */
        String TTL_JIFEN_ROUTING_KEY = "ttl_jifen_routing_key";
    }
}
